package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-21
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */

/**
 * 用户组
 */
@Entity
@Table(name = "ORG_GorupManager")
public class ORG_GorupManager implements Serializable {
    @Id
    @GenericGenerator(name = "GorupGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "GorupGenerator") //使用uuid的生成策略
    private Integer id;
    /**
     * 组名
     */
    private String gorupName;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 分组描述
     */
    private String gorupInfo;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGorupName() {
        return gorupName;
    }

    public void setGorupName(String gorupName) {
        this.gorupName = gorupName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getGorupInfo() {
        return gorupInfo;
    }

    public void setGorupInfo(String gorupInfo) {
        this.gorupInfo = gorupInfo;
    }
}
